package forkjoin;

import java.io.*;

/**
 * Created by think on 2016/6/25.
 */
public class LineNumberReaderTest {
    public static void main(String[] args) throws IOException {
        long start = System.currentTimeMillis();
        LineNumberReader lnr = new LineNumberReader(new BufferedReader(new InputStreamReader(new FileInputStream(new File("D:/study.txt")))));
        long skip = lnr.skip(8);  //跳过8个字符
        System.out.println(lnr.getLineNumber());
        System.out.println(lnr.readLine());
    }
}
